package org.onvivals.module.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户角色关联
 */
@Schema(description="用户角色关联")
@Data
@TableName(value = "sys_user_role")
public class SysUserRole implements Serializable {
    /**
     * 用户ID
     */
    @Schema(description="用户ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    /**
     * 角色ID
     */
    @Schema(description="角色ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long roleId;

    private static final long serialVersionUID = 1L;
}
